package com.palace.saw.module.app.controller.admin.configtype.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 配置类型新增/修改 Request VO")
@Data
public class ConfigTypeSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "8074")
    private Long id;

    @Schema(description = "配置类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "saw")
    @NotEmpty(message = "配置类型名称不能为空")
    private String name;

    @Schema(description = "配置类型编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "配置类型编码不能为空")
    private String type;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态（0正常 1停用）不能为空")
    private Integer status;

    @Schema(description = "配置类型说明", example = "你猜")
    private String remark;

    @Schema(description = "删除时间")
    private LocalDateTime deletedTime;

}